package com.itheima.mapper;

import com.itheima.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    //通过账号和密码登录
    //@Param: 指定占位符中获取对应参数的变量名
    User findByEmailAndPwd(@Param("em") String email, @Param("pwd") String password);

    //获取所有用户
    List<User> findAll();

}
